package routers

import (
	"gin_study_blog/api"
	"gin_study_blog/middleware"
)

func (r RouterGroup) MessageRouter() {
	messageApi := api.ApiGroupApp.MessageApi
	// 发送消息
	r.POST("send_msg", middleware.JwtUserAuth(), messageApi.MessageCreateView)
	r.GET("message_all", middleware.JwtAdminAuth(), messageApi.MessageListAllView)
	r.GET("message_user", middleware.JwtUserAuth(), messageApi.MessageListUserView)
	r.GET("message_record", middleware.JwtUserAuth(), messageApi.MessageRecord)
}
